﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApp.BaseDataSvc;
using YY.Common;

namespace WebApp
{
    public partial class Main : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.IsPermitFrm = false;
            WebCommon.CheckLogin(this, 0);
            if (Session["User"] != null)
            {
                TB_User user = Session["User"] as TB_User;
                this.spanUserName.InnerHtml = user.userName;
                this.spanRoleName.InnerHtml = Enum.GetName(typeof(EnumCommon.SysRoleType), user.role);
            }
        }
    }
}
